package com.peanut.youfupay.entity.request;

import com.peanut.youfupay.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 签约实体类
 *
 * @author peanut
 */
@Getter
@Setter
public class SignContract implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     **/
    private String name;
    /**
     * 卡号
     **/
    private String cardNo;

    /**
     * 身份证号
     **/
    private String idCard;

    /**
     * 手机号
     **/
    private String mobile;

    /**
     * 签约类型 0：接口签约，1：公众号签约
     **/
    private Integer signType;

    /**
     * 签约方式
     **/
    private Integer paymentType;

    /**
     * 税源地ID
     **/
    private Long levyId;

    /**
     * 签约透传数据
     **/
    private String otherParam;

    //身份证正面(旧逻辑,已废弃)
    @Deprecated
    private String remark1;
    //身份证反面（旧逻辑,已废弃）
    @Deprecated
    private String remark2;

    //身份证正面
    private String idCardPic1;
    //身份证反面
    private String idCardPic2;


    @Override
    public String toString() {
        return "SignContract{" +
                "name='" + name + '\'' +
                ", cardNo='" + cardNo + '\'' +
                ", idCard='" + idCard + '\'' +
                ", mobile='" + mobile + '\'' +
                ", signType=" + signType +
                ", paymentType=" + paymentType +
                ", levyId=" + levyId +
                ", otherParam='" + otherParam + '\'' +
                ", remark1='" + StringUtils.cutLongString(remark1,200) + '\'' +
                ", remark2='" + StringUtils.cutLongString(remark2,200) + '\'' +
                ", idCardPic1='" + StringUtils.cutLongString(idCardPic1,200) + '\'' +
                ", idCardPic2='" + StringUtils.cutLongString(idCardPic2,200) + '\'' +
                '}';
    }

}
